package lab02.test33;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class Test33 {
    public static void main(String[] args) {

        List<String> list = new ArrayList<String>();
        Scanner in = new Scanner(System.in);
        String s = in.nextLine();
        String[] a = s.split(" ");
        for (int i = 0; i < a.length; i++) {
            for (int j = i + 1; j < a.length; j++) {


                //compareToIgnoreCase() 方法用于按字典顺序比较两个字符串，不考虑大小写
                if (a[i].compareToIgnoreCase(a[j]) > 0) {
                    s = a[i];
                    a[i] = a[j];
                    a[j] = s;
                }
            }
        }
        for (String o : a) {
            list.add(o);
            System.out.println(o);
        }
    }

}
